import {ElNotification,ElMessageBox } from "element-plus"
import nprogress from 'nprogress'
export function toast(message, type = "success") {
  ElNotification({
    message,
    type,
    duration: 3000,
  });
}
//封装消息弹出框
export function showModal(content="提示内容",type="warning",title=""){
  return ElMessageBox.confirm(
    content,
    title,
    {
      confirmButtonText:"确认",
      cancelButtonText:"取消",
      type
    }
  )
}
//封装全屏进度条
//1.显示全屏进度条
export  function showFullLoading(){
  nprogress.start()
}
//2.退出全屏进度条
export function hideFullLoading(){
  nprogress.done()
}